ByteData

public interface ByteData implements UploadData

An upload data as a sequence of bytes.

Functions

Link copied to clipboard
public Array<byte> bytes()
Returns an array containing the upload data bytes of the associated URL request.
Link copied to clipboard
Returns the content type of this upload data as specified in the Content-Type header.
Link copied to clipboard
public static ByteData of(Array<byte> data)
public static ByteData of(String data)
Creates an instance of ByteData with the given upload data bytes.
public static ByteData of(Array<byte> data, ContentType contentType)
public static ByteData of(String data, ContentType contentType)
Creates an instance of ByteData with the given upload data bytes and content type.